package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.Pdxm;
import com.corpcredit.service.GenericManager;

public class PdxmList extends BasePage implements Serializable {
    private GenericManager<Pdxm, Long> pdxmManager;

    public void setPdxmManager(GenericManager<Pdxm, Long> pdxmManager) {
        this.pdxmManager = pdxmManager;
    }

    public PdxmList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getPdxms() {
        return sort(pdxmManager.getAll());
    }
}

